package com.iweb.shopping.model;

public class Cart {
    private Integer cartid;
    private Integer goodsid;
    private Integer userid;
    private String createtime;

    public Cart() {
    }

    public Cart(Integer cartid, Integer goodsid, Integer userid, String createtime) {
        this.cartid = cartid;
        this.goodsid = goodsid;
        this.userid = userid;
        this.createtime = createtime;
    }

    public Integer getCartid() {
        return cartid;
    }

    public void setCartid(Integer cartid) {
        this.cartid = cartid;
    }

    public Integer getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(Integer goodsid) {
        this.goodsid = goodsid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "cartid=" + cartid +
                ", goodsid=" + goodsid +
                ", userid=" + userid +
                ", createtime='" + createtime + '\'' +
                '}';
    }
}

